From: Lars Magne Ingebrigtsen Date: Thu, 6 Oct 2011 19:15:19 +0000 (+0200) Subject: (define-key-after): Clarify that the function is not useful for non-menu keymaps. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~2035 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0ee83596ec55552c57c0da0ac32ea62dc3d7d82f;p=emacs.git (define-key-after): Clarify that the function is not useful for non-menu keymaps. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 86685e2da8f..eb4b745849b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-10-06 Lars Magne Ingebrigtsen + * subr.el (define-key-after): Clarify that the function is not + useful for non-menu keymaps. + * progmodes/gdb-mi.el (gdb): Fix typo in doc string. 2011-10-06 Thierry Volpiatto diff --git a/lisp/subr.el b/lisp/subr.el index 24e020acf09..05ac198dd13 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -552,7 +552,8 @@ AFTER should be a single event type--a symbol or a character, not a sequence. Bindings are always added before any inherited map. -The order of bindings in a keymap matters when it is used as a menu." +The order of bindings in a keymap only matters when it is used as +a menu, so this function is not useful for non-menu keymaps." (unless after (setq after t)) (or (keymapp keymap) (signal 'wrong-type-argument (list 'keymapp keymap)))